using namespace std;
#include<iostream>
#include<unistd.h>
#include<signal.h>
void handler(int sig)
{
    cout<<"I am "<<sig<<endl;
    exit(0);
}
int main()
{
    signal(SIGFPE,handler);
    int* ptr=nullptr;
    *ptr=10;
    while(1)
    {

    }
    return 0;
}